eth_getUserOperationReceipt
This method returns the receipt of a user operation.
Parameters
hash
: A string representing the hash of the user operation.
Returns
A JSON object with the following properties:
userOpHash
: A string representing the hash of the user operation.entrypoint
: A string representing the entry point of the user operation.sender
: A string representing the sender of the user operation.nonce
: A string representing the nonce of the user operation.paymaster
: A string representing the paymaster of the user operation, if any.actualGasCost
: A string representing the actual gas cost of the user operation.actualGasUsed
: A string representing the actual gas used by the user operation.success
: A boolean representing whether the user operation was successful.reason
: A string representing the reason for the failure of the user operation, if it failed.logs
: An array of logs emitted by the user operation.receipt
: A JSON object representing the receipt of the transaction that included the user operation.
Example Request
{
"jsonrpc":"2.0",
"id":1,
"method":"eth_getUserOperationReceipt",
"params":["0x1234567890123456789012345678901234567890123456789012345678901234"]
}
Example Response
{
"jsonrpc":"2.0",
"id":1,
"result":{
"userOpHash":"0x1234567890123456789012345678901234567890123456789012345678901234",
"entrypoint":"0x0000000071727De22E5E9d8BAf0edAc6f37da032",
"sender":"0x1234567890123456789012345678901234567890",
"nonce":"0x1",
"paymaster":"0x1234567890123456789012345678901234567890",
"actualGasCost":"0x123456",
"actualGasUsed":"0x123456",
"success":true,
"reason":"",
"logs":[],
"receipt":{}
}
}